home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / pascal / gpc1.1p2 / gpc1 / usr / src / gpc-1.1p2-2.6.3 / gpc.gperf < prev    next >
Encoding:
Text File  |  1995-04-20  |  3.3 KB  |  110 lines

  1. %{ 
  2. /* ISO Pascal 7185 && Extended Pascal (Jan 29, 1989 Draft) reserved words.
  3.  
  4.    Copyright (C) 1989, 1993, Free Software Foundation, Inc.
  5.  
  6. This file is part of GNU GPC.
  7.  
  8. GNU GPC is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 1, or (at your option)
  11. any later version.
  12.  
  13. GNU GPC is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU GPC; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21.  
  22. /*
  23.  * For GNU Pascal compiler (GPC) by Jukka Virtanen, jtv@hut.fi
  24.  *
  25.  * run this through the Doug Schmidt's gperf program
  26.  * with command
  27.  * gperf  -g -o -j1 -t -p -N is_reserved_word
  28.  *
  29.  * Thanks, Doug.
  30.  */
  31.  
  32. /* ISO Pascal 7185 keywords are recognized as keywords.
  33.  *
  34.  * To treat PASCAL_EXTEND type keywords as keywords,
  35.  * you must give -fpascal_extended when compiling.
  36.  *
  37.  * To treat PASCAL_OBJECT keywords as keywords, give
  38.  * -fpascal_object
  39.  *
  40.  * Otherwise they are recognized, but may be redfined.
  41.  * This violates Extended Pascal standard, but works anyhow,
  42.  * if your program does not redefine them. And it also makes
  43.  * ISO standard pascal program compile without modifications with GPC.
  44.  *
  45.  */
  46. %}
  47. struct resword { char *name;
  48.          short token;
  49.          short iclass;
  50.          int   informed;
  51.            };
  52.  
  53. %%
  54. Abstract,    OP_ABSTRACT,    PASCAL_OBJECT,    0
  55. And,        AND,        PASCAL_ISO,    0
  56. And_then,     AND_THEN,     PASCAL_EXTEND,    0
  57. Array,        ARRAY,        PASCAL_ISO,    0
  58. Begin,        BEGIN,        PASCAL_ISO,    0
  59. Bindable,     BINDABLE,    PASCAL_EXTEND,    0
  60. Case,        CASE,        PASCAL_ISO,    0
  61. Class,        OP_CLASS,    PASCAL_OBJECT,    0
  62. Const,        CONST,        PASCAL_ISO,    0
  63. Constructor,    OP_CONSTRUCTOR,    PASCAL_OBJECT,    0
  64. Destructor,    OP_DESTRUCTOR,    PASCAL_OBJECT,    0
  65. Div,        DIV,        PASCAL_ISO,    0
  66. Do,        DO,        PASCAL_ISO,    0
  67. Downto,     DOWNTO,        PASCAL_ISO,    0
  68. Else,        ELSE,        PASCAL_ISO,    0
  69. End,        END,        PASCAL_ISO,    0
  70. Export,     EXPORT,     PASCAL_EXTEND,    0
  71. File,        FILE_,        PASCAL_ISO,    0
  72. For,        FOR,        PASCAL_ISO,    0
  73. Function,     FUNCTION,     PASCAL_ISO,    0
  74. Goto,        GOTO,        PASCAL_ISO,    0
  75. If,        IF,        PASCAL_ISO,    0
  76. Inherited,    OP_INHERITED,    PASCAL_OBJECT,    0
  77. Import,     IMPORT,     PASCAL_EXTEND,    0
  78. In,        IN,        PASCAL_ISO,    0
  79. Is,        OP_IS,        PASCAL_OBJECT,    0
  80. Label,        LABEL,        PASCAL_ISO,    0
  81. Mod,        MOD,        PASCAL_ISO,    0
  82. Module,     MODULE,     PASCAL_EXTEND,    0
  83. Nil,        NIL,        PASCAL_ISO,    0
  84. Not,        NOT,        PASCAL_ISO,    0
  85. Of,        OF,        PASCAL_ISO,    0
  86. Only,       ONLY,       PASCAL_EXTEND,    0
  87. Or,        OR,        PASCAL_ISO,    0
  88. Or_else,     OR_ELSE,     PASCAL_EXTEND,    0
  89. Otherwise,     OTHERWISE,     PASCAL_EXTEND,    0
  90. Packed,        PACKED,        PASCAL_ISO,    0
  91. Pow,        POW,        PASCAL_EXTEND,    0
  92. Procedure,     PROCEDURE,     PASCAL_ISO,    0
  93. Program,       PROGRAM,       PASCAL_ISO,    0
  94. Property,    OP_PROPERTY,     PASCAL_OBJECT,    0
  95. Protected,     PROTECTED,     PASCAL_EXTEND,    0
  96. Qualified,     QUALIFIED,     PASCAL_EXTEND,    0
  97. Record,        RECORD,        PASCAL_ISO,    0
  98. Repeat,        REPEAT,        PASCAL_ISO,    0
  99. Restricted,       RESTRICTED,    PASCAL_EXTEND,    0
  100. Set,        SET,        PASCAL_ISO,    0
  101. Then,        THEN,        PASCAL_ISO,    0
  102. To,        TO,        PASCAL_ISO,    0
  103. Type,        TYPE,        PASCAL_ISO,    0
  104. Until,        UNTIL,        PASCAL_ISO,    0
  105. Value,      VALUE,      PASCAL_EXTEND,    0
  106. Var,        VAR,        PASCAL_ISO,    0
  107. View,        OP_VIEW,    PASCAL_OBJECT,    0
  108. While,        WHILE,        PASCAL_ISO,    0
  109. With,        WITH,        PASCAL_ISO,    0
  110.